# makefile 
CC = mpicxx
LDFLAGS = 
CCFLAGS = -c
EXE = main

SOURCES = main.cpp test.cpp
OBJECTS = $(SOURCES:.cpp=.o)

$(EXE):$(OBJECTS)
	$(CC) $^ $(LDFLAGS) -o $@

%.o : %.cpp
	$(CC) $(CCFLAGS) $< -o $@ 

.PHONY: clean

clean:
	-rm -f *.o $(EXE)
